<extend name="Base/common"/>
<block name="body">
  <!--婉清看这里 输出img地址-->
  <if condition="!$title">
    <div class="container mb15 banner tc">
      <a href="<if condition='$categoryInfo[link_id]'>{$categoryInfo['link_id']}<else/>#</if>" target="_blank">
        <img src="<if condition='$categoryInfo[icon]'>{$categoryInfo['icon']}<else/>http://static.fengxiulin.cn/uploads/img/categoryImg.jpg</if>" width="100%" alt="{$categoryInfo['description']}" title="{$categoryInfo['description']}">
      </a>
    </div>
    <else/>
    	<div class="container mb15 banner">
	        <ul class="breadcrumb">
	          <li>当前位置：</li>
	          <li><a href="{:url_route('index')}">{:C('TITLE')}</a></li>
	          <li><a href="#">{$title}</a></li>
	        </ul>
      </div>	
    </if>
  <!-- end -->
  <section class="container">
    <!-- 左侧 -->
    <div class="content-wrap">
        <div class="content">
            <!-- <div class="title">
                <h3 style="line-height: 1.3">MZ-NetBlog主题</h3>
            </div> -->
         <if condition="$list" >
            <volist name='list' id='data'>    
            <article class="excerpt excerpt-1">
                <if condition="$data['count'] gt 1">
              
                  <a class="focus" href="{:url_route('detail/'.$da['nav'].'/'.$data['pin_yin'].'/id/'.$data['id'])}" title="{$data.title}" target="_blank" draggable="false"><img class="thumb" data-original="{$data.cover_id}" src="http://statics.wttai.com/debug/img/dot.png" alt="{$data.title}" style="display: inline;" draggable="false"></a>
                <!-- end -->
                  <a href="{:url_route('detail/'.$da['nav'].'/'.$data['pin_yin'].'/id/'.$data['id'])}" title="" target="_blank">
                <else/>
                
                  <a class="focus" href="{:url_route('detail/'.$da['nav'].'/'.$data['pin_yin'])}" title="{$data.title}" target="_blank" draggable="false"><img class="thumb" data-original="" src="{$data.cover_id}" alt="{$data.title}" style="display: inline;" draggable="false"></a>
                <!-- end -->
                   <a href="{:url_route('detail/'.$da['nav'].'/'.$data['pin_yin'])}" title="{$data.title}" target="_blank"> 
                </if>
                <header>
                  <h2>{$data.title}</h2>  
                </header>
                <p class="meta">
                    <time class="time">
                        <i class="glyphicon glyphicon-time"></i> {$data.create_time|date="Y-m-d",###}</time>
                    <span class="views">
                        <i class="glyphicon glyphicon-eye-open"></i> {$data.view}</span>
                        <if  condition="0">
                    <!--a class="comment" href="##comment" title="评论" target="_blank">
                        <i class="glyphicon glyphicon-comment"></i>4</a-->
                        </if>
                </p>
                <p class="note">
                <if condition="strlen($data['description']) gt 128">
        	   {:mb_substr($data['description'],0,128)."..."}
         
        	<else/>
        	   {$data['description']}
       		</if>
               
                </p>
                </a>
            </article>
            <div class="line"></div>
            </volist>
          
            <!--nav class="pagination" style="display: none;"-->
            
            <nav>
	            <gt name="sumPage" value="1">
	                {$pageStr}
	               
	           </gt>     
            </nav>
       		
          </if> 
           <if condition="!$list">
       		   <div class="noconment text-center mt20">
              <img src="/Public/images/noConment.png" alt="暂无数据" class="mt20">
              <p class="mt20">该分类下暂无数据</p> 
             </div>
           </if>
        </div>
    </div>
    <!-- end -->
    <!-- 右侧 -->
    <aside class="sidebar hidden-xs">
	 <if condition="$rightAd">
       <div class="widget widget_sentence">
            <a href="{$rightAd['url']}" target="_blank" rel="nofollow" title="">
            <img  src="{$Think.const.STATIC_DOMAIN}{$rightAd['img']}" alt="{$rightAd['title']}"  title="{$rightAd['title']}"></a>
        </div>
      </if>
      <div class="widget widget_sentence">
        <h3><a href="{:url_route('cate')}">分类</a></h3>
        <div class="tag-cloud">
          <volist name="category"  id="data">
             <a href="{:url_route('cate/'.$data['name'])}">{$data['title']}</a> 
          </volist>
         </div>
      </div>

 	 <if condition="$rightthreeAd">
         <div class="widget widget_sentence">
            <a href="{$rightthreeAd['url']}" target="_blank" rel="nofollow" title="">
            <img  src="{$Think.const.STATIC_DOMAIN}{$rightthreeAd['img']}" alt="{$rightthreeAd['title']}"  title="{$rightthreeAd['title']}"></a>
        </div>
        </if>
          <div class="widget widget_sentence">
              <h3><a href="{:url_route('new')}">热门资讯</a></h3>
              <div class="widget-tabs">
                <div class="tab-content">
                  <ul>
                    <volist name="hotDoc" id="v">
                      <li>
                        <if condition="$v.count gt 1">
                            <time datetime="{:date('Y-m-d',$v['create_time'])}">{:date('m-d',$v['create_time'])}</time>
                            <a href="{:url_route('detail/'.$da['nav'].'/'.$v['pin_yin'].'/id/'.$v['id'])}" target="_blank" draggable="false">{$v['title']}</a></li>
                            
                        <else/>
                            <time datetime="{:date('Y-m-d',$v['create_time'])}">{:date('m-d',$v['create_time'])}</time>
                            <a href="{:url_route('detail/'.$da['nav'].'/'.$v['pin_yin'])}" target="_blank" draggable="false">{$v['title']}</a></li>
                        </if>
                      <li>
                    </volist>
                  </ul>
                </div>
              </div>
          </div>
        <if condition="$rightfourAd">
         <div class="widget widget_sentence">
            <a href="{$rightfourAd['url']}" target="_blank" rel="nofollow" title="">
            <img  src="{$Think.const.STATIC_DOMAIN}{$rightfourAd['img']}" alt="{$rightfourAd['title']}"  title="{$rightfourAd['title']}"></a>
        </div>
        </if>
          <div class="widget widget_hot">
            <h3>推荐店铺</h3>
            <ul>
              <volist name="shopInfo" id="v">
                <li>
                  <a title="" href="{$v['store_url']}" target="_blank" draggable="false">
                    <span class="thumbnail">
                      <img class="thumb" src="{$v['shop_logo']}" alt="" style="display: block;" draggable="false"></span>
                    <span class="text" title="{$v['store_name']}" style="margin-top:8px">{$v['store_name']}</span>
                    <span class="muted multiple-ellipsis2">{$v['store_introduction']}</span>
                  </a>
                </li>
              </volist>
            </ul>
          </div>
	 <if condition="$rightfiveAd">
         <div class="widget widget_sentence">
            <a href="{$rightfiveAd['url']}" target="_blank" rel="nofollow" title="">
            <img  src="{$Think.const.STATIC_DOMAIN}{$rightfiveAd['img']}" alt="{$rightfiveAd['title']}"  title="{$rightfiveAd['title']}"></a>
        </div>
        </if>

      <div class="">
      <!-- <div class="fixed"> -->
        <div class="widget widget_sentence">
          <h3><a href="{:url_route('tags')}">标签云</a></h3>
          <div class="tag-cloud">
            <volist name="tags"  id="data">
              <if condition="$data['tag_name'] neq ''">
                 <a href="{:url_route('tags/'.$data['name'])}">{$data['tag_name']}</a> 
              </if>
            </volist>

            <div class="gzh" style="padding:15px 0 10px 0;float:left">
              <img src="/Public/images/gzh.png" alt="梧桐珆公众号" style="width:45%;float:left">
              <div style="float:left;margin:15px 0 10px 10px">
                <h4>
                    梧桐珆公众号
                </h4>
                <div style="width:20px;border-bottom:2px #111 solid;height:0;font-size:0;margin:15px 0 15px 0;"></div>
                <p>
                  扫码关注微信公众号<br>
                  找原创货源 上梧桐珆
                </p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </aside>
    <!-- end -->
  </section>
</block>